#pragma once
#include<sys/ipc.h>
#include<sys/shm.h>
#include<assert.h>
char pathname[]="/home/ubuntu/codetest/shared_memory";
int proj_id=0;

key_t getKey()
{
    key_t key=ftok(pathname,proj_id);
    assert(key!=-1);
    return key;
}